redux store context not being passed through babylon react components? |
您所在的位置:网站首页 › redux recoil › redux store context not being passed through babylon react components? |
hi @kyehuelin - This catches so many people! It's unfortunate the React team never came up with a solution. You need to bridge the context. Here are some code samples: https://github.com/konvajs/react-konva/issues/188 I have an example in storybook for bridging the context: https://github.com/brianzinn/react-babylonjs/blob/master/stories/babylonjs/Basic/contextBridge.stories.js You can also flow the props through, but is only a reasonable solution with few props/methods: https://github.com/brianzinn/create-react-app-babylonjs/blob/master/src/withProps/components/WithProps.js 1 Answered Apr 12 '21 at 18:30 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |